<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/ui-input.css">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <script src="js/zy_control.js"></script>
        <script src="js/zy_click.js"></script>
        <script src="js/jquery-1.8.3.min.js"></script>
        <script src="js/common.js"></script>
		<script src="js/talkingdata.js"></script>
        <style>
            .bgi {
                background-image: url("images/bcImage.png");
            }
            .return {
                background-image: url('images/delaySchedule1.png');
                height: 1.25em;
                width: 1.25em;
            }
            .nav-btn {
                min-height: 2em;
                min-width: 4em;
                display: -webkit-box !important;
                display: box !important;
                position: relative;
                -webkit-box-align: center;
                box-align: center;
                -webkit-box-pack: center;
                box-pack: center;
            }
            .ani-act {
                transform: scale(0.95,0.97);
                -webkit-transform: scale(0.95,0.97);
                -webkit-transition-duration: 300ms;
                opacity: .7;
            }
        </style>
    </head>
    <body class="um-vp " ontouchstart>
        <div id="page_0" class="up ub ub-ver bc-bg ub-img4 bgi" tabindex="0">
            <!--header开始-->

          <div id="header" class="uh ub bc-text-head" style="background-color: #36395c">
                <div class="nav-btn ub ub-ac" id="nav-left">
                    <div class="return ub-img" onclick="closeWidget('-1')"></div>
                </div>
                <h1 class="ut ub-f1 ulev0 ut-s tx-c " tabindex="0" style="color: #FFFFFF">航站信息无需修改</h1>
                <div class="nav-btn nav-bt" id="nav-right"></div>
            </div>
            <!--header结束--><!--content开始-->
            <div id="content" class="ub-f1 tx-l">
                <div style="padding: 2.5em 0.2em 0em 0.2em;color: #FFFFFF;width: 100% " class="ub ub-ver">

                    <div class="ub ub-ac"style="width:100%;">
                        <div style="width:25%;margin-right: 0.3em;" class="tx-r">
                            机场
                        </div>
                       <div style="border:1px solid rgba(255,255,255,0.5);padding: 0.8em;width:50%;font-size: 0.8em" id="airport" contenteditable="true"></div>
                    </div>

                    <div class="ub ub-ac"style="width:100%;margin-top: 1.3em ">
                        <div style="width:25%;margin-right: 0.3em;"class="tx-r">
                            （站）
                        </div>
                        <div style="border:1px solid rgba(255,255,255,0.5);padding: 0.8em;width:50%;font-size: 0.8em" id="company" contenteditable="true"></div>
                    </div>

                    <div class="ub ub-ac"style="width:100%;margin-top: 1.3em ">
                        <div style="width:25%;margin-right: 0.3em;"class="tx-r">
                            联系单位
                        </div>
                        <div style="border:1px solid rgba(255,255,255,0.5);padding: 0.8em;width:50%;font-size: 0.8em" contenteditable="true">
                             <input style="background-color: rgba(255,255,255,0);border: 0px;height: 100%;width: 100%;color: #FFFFFF"  id="terminal"/>
                        </div>
                    </div>
                    <div class="ub ub-ac"style="width:100%;margin-top: 1.3em ">
                        <div style="width:25%;margin-right: 0.3em;"class="tx-r">
                            联系人
                        </div>
                        <div style="border:1px solid rgba(255,255,255,0.5);padding: 0.8em;width:50%;font-size: 0.8em" contenteditable="true">
                            <input style="background-color: rgba(255,255,255,0);border: 0px;height: 100%;width: 100%;color: #FFFFFF"  id="person"/>
                        </div>
                    </div>

                    <div class="ub ub-ac"style="width:100%;margin-top: 1.3em ">
                        <div style="width:25%;margin-right: 0.3em;"class="tx-r">
                            确认信息
                        </div>
                        <div style="border:1px solid rgba(255,255,255,0.5);padding: 0.8em;width:50%;font-size: 0.8em" id="confirmation"contenteditable="true">
                            <input style="background-color: rgba(255,255,255,0);border: 0px;height: 100%;width: 100%;color: #FFFFFF"  id="confirmation"/>
                        </div>
                    </div>
                    <div style="width: 100%;margin-top: 3em;" class="ub ub-pc ub-ac" >
                        <div style="border: 1px solid rgba(255,255,255,0.6);width: 22%;padding: 0.5em;font-size: 0.9em;border-radius: 0.3em" class="tx-c" ontouchstart="zy_touch('ani-act')" onclick="setSubmit()">
                            提交
                        </div>
                    </div>
                </div>
            </div>
            <!--content结束-->

        </div>

    </body>
    <script>
        zy_init();
        window.uexOnload = function(type) {
            if (!type) {
				IC.talkingDataCount("机场信息变更","0023");
                uexWindow.setReportKey(0, 1);
                uexWindow.onKeyPressed = function(keyCode){
                    if (keyCode == 0){
                         uexWidget.finishWidget('1');
                    } 
                }
                load();
            }
        }
        
        function closeWidget(){
            uexWidget.finishWidget('1');
			IC.talkingDataCount("机场信息变更","0023");
        }
        function load(){
         var airportname=localStorage.getItem("Default_FullName");
         if(airportname=="undefined"){
             airportname="上海虹桥"
         }
         $$("airport").innerHTML=airportname;
         var zhanname=localStorage.getItem("Default_FullName");
         if(zhanname=="undefined"){
             zhanname="上海虹桥"
         }
         $$("company").innerHTML=zhanname;
        }
        function setSubmit() {
			IC.talkingDataCount("机场信息变更","0023");
            //获取需要传入的参数
            var airport = $$("airport").innerHTML;
            //机场
            // var datetimes=$$(datetimes).innerHTML,//时间
            var terminal = $$("terminal").value;
            //站
            var person = $$("person").value;
            //联系人
            var company = $$("company").innerHTML;
            //公司
            var confirmation = $$("confirmation").value;
            //确认信息
            var param = {
                "airport.airport" : airport,
                //"airport.datetimes":datetimes,
                "airport.terminal" : terminal,
                "airport.person" : person,
                "airport.company" : company,
                "airport.confirmation" : confirmation
            };
            jQuery.ajax({
                url : yddfProUrl+"airport_addAirport.action",
                type : "POST",
                data : param,
                dataType : "text",
                success : function(data) {
                    alert("提交成功");
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) { 
                        alert("提交失败！"); 
                } 
            });
        }
    </script>
</html>